#pragma once

#include <QWidget>
#include "ui_page3.h"
#include "MyData.h"
#include "SportMeeting.h"
#include <QTableWidget>
#include <QTableWidgetItem>
class SportMeeting;
class page3 : public QWidget
{
	Q_OBJECT

public:
	page3(QWidget *parent = nullptr);
	~page3();
	void setData(MyData*);
	void loadData();
	void setHasRead(bool);
	friend void setPage(SportMeeting* sportMeeting, QWidget*);
	friend void message(QString title, QString text, QMessageBox::Icon, QMessageBox::Button, QWidget* parent);
private:
	Ui::page3Class ui;
	MyData* myData;
	SportMeeting* parent;
	bool hasReadFile;
private slots:
	void next_page();
	void pre_page();
	void admit();
	void projectBox();
	void saveJsonFile();
};
